<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8" %>
<%@ page import="java.util.*" %>
<%@ page import="com.sms.homework.*" %>
<%@ page import="net.sf.json.*"%>

<%--
	project/teacher/query-project.jsp
 --%>

<%	//清除内存
	response.setHeader("Pragma","No-cache"); 
	response.setHeader("Cache-Control","no-cache"); 
	response.setDateHeader("Expires", 0); 
%>

<%
	request.setCharacterEncoding("utf-8");	
	String taskid = request.getParameter("row");
	int num = Integer.parseInt(taskid);
	
	String msg = "ok";
	boolean isSuccess = true;

		if(!Homework.changestatus(num) ){
			isSuccess = false;
		}		
	if(isSuccess) {
		msg = "ok";
	} else {
		msg = "error";
	}
	
	msg = msg.replace("/rn/g", "");//去掉产生的换行
	out.clear();//去除要输出的内容
	out.write(msg);
%>